Finding Inputs and Outputs of a Function